<?php
if ( !defined( "IN_OP" ) )
{
    exit( "You can't access this file directly..." );
}
if ( $curruser['acl'] == 255 && $curruser['prev_id'] != 0 && !SubAccountRight( $curruser, 2 ) )
{
    exit();
}
if ( isset( $_SESSION['subaccount'] ) && $curruser['acl'] < 255 )
{
    exit();
}
if ( $curruser['enabled'] == 2 )
{
    exit();
}
$gametype = intval( getvar( "gametype" ) );
$chkGametype = chkGametype( $gametype );
if ( $chkGametype )
{
    include_once( "class_3d/CheckMode_3d.php" );
    $chk = new CheckMode_3d( $curruser['acl'], 1, $gametype );
    $chk->checkShow3dPage();
    unset( $chk );
}
else
{
    $ui = new UI( TRUE );
}
ob_end_clean();
$tpl = new Template2();
$tpl->set( "leftAccFrame", "op.php?op=agent&fp=acctree&gametype={$gametype}" );
$showAccURL = "";
$tpl->load( "main", "acctreeidx.htm" );
$tpl->show( "main" );
?>